package com.ivanceras.server.mapper;

import com.ivanceras.server.dao.DAO_Ad_window;
import com.ivanceras.shared.bo.Ad_window;

public class Ad_windowMapper{
/**
 *
 */
	public static Ad_window map(DAO_Ad_window daoAd_window){
		Ad_window ad_window = new Ad_window();
		ad_window.setAd_window_id(daoAd_window.getAd_window_id());
		ad_window.setAd_client_id(daoAd_window.getAd_client_id());
		ad_window.setAd_org_id(daoAd_window.getAd_org_id());
		ad_window.setIsactive(daoAd_window.getIsactive());
		ad_window.setCreated(daoAd_window.getCreated());
		ad_window.setCreatedby(daoAd_window.getCreatedby());
		ad_window.setUpdated(daoAd_window.getUpdated());
		ad_window.setUpdatedby(daoAd_window.getUpdatedby());
		ad_window.setName(daoAd_window.getName());
		ad_window.setDescription(daoAd_window.getDescription());
		ad_window.setHelp(daoAd_window.getHelp());
		ad_window.setWindowtype(daoAd_window.getWindowtype());
		ad_window.setIssotrx(daoAd_window.getIssotrx());
		ad_window.setEntitytype(daoAd_window.getEntitytype());
		ad_window.setProcessing(daoAd_window.getProcessing());
		ad_window.setAd_image_id(daoAd_window.getAd_image_id());
		ad_window.setAd_color_id(daoAd_window.getAd_color_id());
		ad_window.setIsdefault(daoAd_window.getIsdefault());
		ad_window.setWinheight(daoAd_window.getWinheight());
		ad_window.setWinwidth(daoAd_window.getWinwidth());
		ad_window.setIsbetafunctionality(daoAd_window.getIsbetafunctionality());
		ad_window.setAd_window_uu(daoAd_window.getAd_window_uu());
//		ad_window.setAd_client(Ad_clientMapper.map(daoAd_window.getAd_client()));
//		ad_window.setAd_color(Ad_colorMapper.map(daoAd_window.getAd_color()));
//		ad_window.setAd_entitytype(Ad_entitytypeMapper.map(daoAd_window.getAd_entitytype()));
//		ad_window.setAd_image(Ad_imageMapper.map(daoAd_window.getAd_image()));
//		ad_window.setAd_org(Ad_orgMapper.map(daoAd_window.getAd_org()));
//		ad_window.setAd_issueList(Ad_issueMapper.map(daoAd_window.getAd_issueList()));
//		ad_window.setAd_menuList(Ad_menuMapper.map(daoAd_window.getAd_menuList()));
//		ad_window.setAd_package_exp_commonList(Ad_package_exp_commonMapper.map(daoAd_window.getAd_package_exp_commonList()));
//		ad_window.setAd_package_exp_detailList(Ad_package_exp_detailMapper.map(daoAd_window.getAd_package_exp_detailList()));
//		ad_window.setAd_preferenceList(Ad_preferenceMapper.map(daoAd_window.getAd_preferenceList()));
//		ad_window.setAd_ref_tableList(Ad_ref_tableMapper.map(daoAd_window.getAd_ref_tableList()));
//		ad_window.setAd_searchdefinitionList(Ad_searchdefinitionMapper.map(daoAd_window.getAd_searchdefinitionList()));
//		ad_window.setAd_tabList(Ad_tabMapper.map(daoAd_window.getAd_tabList()));
//		ad_window.setAd_tableList(Ad_tableMapper.map(daoAd_window.getAd_tableList()));
//		ad_window.setAd_userdef_winList(Ad_userdef_winMapper.map(daoAd_window.getAd_userdef_winList()));
//		ad_window.setAd_wf_nodeList(Ad_wf_nodeMapper.map(daoAd_window.getAd_wf_nodeList()));
//		ad_window.setAd_window_accessList(Ad_window_accessMapper.map(daoAd_window.getAd_window_accessList()));
//		ad_window.setAd_window_trlList(Ad_window_trlMapper.map(daoAd_window.getAd_window_trlList()));
//		ad_window.setAd_workbenchwindowList(Ad_workbenchwindowMapper.map(daoAd_window.getAd_workbenchwindowList()));
//		ad_window.setAsp_clientexceptionList(Asp_clientexceptionMapper.map(daoAd_window.getAsp_clientexceptionList()));
//		ad_window.setAsp_windowList(Asp_windowMapper.map(daoAd_window.getAsp_windowList()));
//		ad_window.setPa_dashboardcontentList(Pa_dashboardcontentMapper.map(daoAd_window.getPa_dashboardcontentList()));
//		ad_window.setPp_order_nodeList(Pp_order_nodeMapper.map(daoAd_window.getPp_order_nodeList()));
		return ad_window;
	}

//	public static DAO_Ad_window map(DAO dao){
//		DAO_Ad_window ad_window = new DAO_Ad_window();
//		ad_window.setAd_window_id((BigDecimal) dao.get_Value("ad_window_id"));
//		ad_window.setAd_client_id((BigDecimal) dao.get_Value("ad_client_id"));
//		ad_window.setAd_org_id((BigDecimal) dao.get_Value("ad_org_id"));
//		ad_window.setIsactive((String) dao.get_Value("isactive"));
//		ad_window.setCreated((Timestamp) dao.get_Value("created"));
//		ad_window.setCreatedby((BigDecimal) dao.get_Value("createdby"));
//		ad_window.setUpdated((Timestamp) dao.get_Value("updated"));
//		ad_window.setUpdatedby((BigDecimal) dao.get_Value("updatedby"));
//		ad_window.setName((String) dao.get_Value("name"));
//		ad_window.setDescription((String) dao.get_Value("description"));
//		ad_window.setHelp((String) dao.get_Value("help"));
//		ad_window.setWindowtype((String) dao.get_Value("windowtype"));
//		ad_window.setIssotrx((String) dao.get_Value("issotrx"));
//		ad_window.setEntitytype((String) dao.get_Value("entitytype"));
//		ad_window.setProcessing((String) dao.get_Value("processing"));
//		ad_window.setAd_image_id((BigDecimal) dao.get_Value("ad_image_id"));
//		ad_window.setAd_color_id((BigDecimal) dao.get_Value("ad_color_id"));
//		ad_window.setIsdefault((String) dao.get_Value("isdefault"));
//		ad_window.setWinheight((BigDecimal) dao.get_Value("winheight"));
//		ad_window.setWinwidth((BigDecimal) dao.get_Value("winwidth"));
//		ad_window.setIsbetafunctionality((String) dao.get_Value("isbetafunctionality"));
//		ad_window.setAd_window_uu((String) dao.get_Value("ad_window_uu"));
//		return ad_window;
//	}

	public static DAO_Ad_window map(Ad_window ad_window){
		DAO_Ad_window daoAd_window = new DAO_Ad_window();
		daoAd_window.setAd_window_id(ad_window.getAd_window_id());
		daoAd_window.setAd_client_id(ad_window.getAd_client_id());
		daoAd_window.setAd_org_id(ad_window.getAd_org_id());
		daoAd_window.setIsactive(ad_window.getIsactive());
		daoAd_window.setCreated(ad_window.getCreated());
		daoAd_window.setCreatedby(ad_window.getCreatedby());
		daoAd_window.setUpdated(ad_window.getUpdated());
		daoAd_window.setUpdatedby(ad_window.getUpdatedby());
		daoAd_window.setName(ad_window.getName());
		daoAd_window.setDescription(ad_window.getDescription());
		daoAd_window.setHelp(ad_window.getHelp());
		daoAd_window.setWindowtype(ad_window.getWindowtype());
		daoAd_window.setIssotrx(ad_window.getIssotrx());
		daoAd_window.setEntitytype(ad_window.getEntitytype());
		daoAd_window.setProcessing(ad_window.getProcessing());
		daoAd_window.setAd_image_id(ad_window.getAd_image_id());
		daoAd_window.setAd_color_id(ad_window.getAd_color_id());
		daoAd_window.setIsdefault(ad_window.getIsdefault());
		daoAd_window.setWinheight(ad_window.getWinheight());
		daoAd_window.setWinwidth(ad_window.getWinwidth());
		daoAd_window.setIsbetafunctionality(ad_window.getIsbetafunctionality());
		daoAd_window.setAd_window_uu(ad_window.getAd_window_uu());
//		daoAd_window.setAd_client(Ad_clientMapper.map(ad_window.getAd_client()));
//		daoAd_window.setAd_color(Ad_colorMapper.map(ad_window.getAd_color()));
//		daoAd_window.setAd_entitytype(Ad_entitytypeMapper.map(ad_window.getAd_entitytype()));
//		daoAd_window.setAd_image(Ad_imageMapper.map(ad_window.getAd_image()));
//		daoAd_window.setAd_org(Ad_orgMapper.map(ad_window.getAd_org()));
//		daoAd_window.setAd_issueList(Ad_issueMapper.map(ad_window.getAd_issueList()));
//		daoAd_window.setAd_menuList(Ad_menuMapper.map(ad_window.getAd_menuList()));
//		daoAd_window.setAd_package_exp_commonList(Ad_package_exp_commonMapper.map(ad_window.getAd_package_exp_commonList()));
//		daoAd_window.setAd_package_exp_detailList(Ad_package_exp_detailMapper.map(ad_window.getAd_package_exp_detailList()));
//		daoAd_window.setAd_preferenceList(Ad_preferenceMapper.map(ad_window.getAd_preferenceList()));
//		daoAd_window.setAd_ref_tableList(Ad_ref_tableMapper.map(ad_window.getAd_ref_tableList()));
//		daoAd_window.setAd_searchdefinitionList(Ad_searchdefinitionMapper.map(ad_window.getAd_searchdefinitionList()));
//		daoAd_window.setAd_tabList(Ad_tabMapper.map(ad_window.getAd_tabList()));
//		daoAd_window.setAd_tableList(Ad_tableMapper.map(ad_window.getAd_tableList()));
//		daoAd_window.setAd_userdef_winList(Ad_userdef_winMapper.map(ad_window.getAd_userdef_winList()));
//		daoAd_window.setAd_wf_nodeList(Ad_wf_nodeMapper.map(ad_window.getAd_wf_nodeList()));
//		daoAd_window.setAd_window_accessList(Ad_window_accessMapper.map(ad_window.getAd_window_accessList()));
//		daoAd_window.setAd_window_trlList(Ad_window_trlMapper.map(ad_window.getAd_window_trlList()));
//		daoAd_window.setAd_workbenchwindowList(Ad_workbenchwindowMapper.map(ad_window.getAd_workbenchwindowList()));
//		daoAd_window.setAsp_clientexceptionList(Asp_clientexceptionMapper.map(ad_window.getAsp_clientexceptionList()));
//		daoAd_window.setAsp_windowList(Asp_windowMapper.map(ad_window.getAsp_windowList()));
//		daoAd_window.setPa_dashboardcontentList(Pa_dashboardcontentMapper.map(ad_window.getPa_dashboardcontentList()));
//		daoAd_window.setPp_order_nodeList(Pp_order_nodeMapper.map(ad_window.getPp_order_nodeList()));
		return daoAd_window;
	}
	public static Ad_window[] map(DAO_Ad_window[] daoAd_windowList){
		if(daoAd_windowList == null){
			return null;
		}
		Ad_window[] ad_windowList = new Ad_window[daoAd_windowList.length];
		int index = 0;
		for(DAO_Ad_window daoAd_window : daoAd_windowList){
			ad_windowList[index++] = map(daoAd_window);
		}
		return ad_windowList;
	}
	public static DAO_Ad_window[] map(Ad_window[] ad_windowList){
		if(ad_windowList == null){
			return null;
		}
		DAO_Ad_window[] daoAd_windowList = new DAO_Ad_window[ad_windowList.length];
		int index = 0;
		for(Ad_window Ad_window : ad_windowList){
			daoAd_windowList[index++] = map(Ad_window);
		}
		return daoAd_windowList;
	}

//	public static DAO_Ad_window[] map(DAO[] daoList) {
//		DAO_Ad_window[] ad_windowList = new DAO_Ad_window[daoList.length];
//		int index = 0;
//		for(DAO dao : daoList){
//			ad_windowList[index++] = map(dao);
//		}
//		return ad_windowList;
//	}
}